package cn.pet_know.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 知识内容与类型关联表
 */

@Data
@TableName("knowledge_type_with")
@ApiModel(value = "knowledge_type_with", description = "实体对象: 知识内容与类型关联表")
public class KnowledgeTypeWith {
	@ApiModelProperty(value = "")
	@TableId(type = IdType.AUTO)
	private Integer id;
	/** 知识类型ID */
	@ApiModelProperty(value = "知识类型ID")
    @TableField(value = "type_id")
	private Long typeId;
	/** 知识内容ID */
	@ApiModelProperty(value = "知识内容ID")
    @TableField(value = "knowledge_id")
	private Long knowledgeId;
	@ApiModelProperty(value = "")
    @TableField(value = "created_at")
	private LocalDateTime createdAt;
	@ApiModelProperty(value = "")
    @TableField(value = "updated_at")
	private LocalDateTime updatedAt;
	/** 是否删除: 0 未删除 1 已删除 */
	@ApiModelProperty(value = "是否删除: 0 未删除 1 已删除")
    @TableField(value = "deleted")
	private Integer deleted;
	
}